Skip to content

Fix the handling of constant parameters in function bodies #710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

clarus
Copy link
Collaborator

@clarus clarus commented Mar 31, 2025

Here is what is fixed:

fn foo<N: usize>() -> size {
    return N; // Previously, the `N` would not appear properly in the translation
}

So it was not possible before to analyze the body of functions with const parameters.

@clarus clarus force-pushed the guillaume-claret@fix-constant-parameters-of-functions branch from 322073c to 0193cf1 Compare March 31, 2025 15:37
@clarus clarus changed the title Draft: fix the handling of constant parameters in function bodies Fix the handling of constant parameters in function bodies Mar 31, 2025
@clarus clarus merged commit d537011 into main Mar 31, 2025
1 check passed
@clarus clarus deleted the guillaume-claret@fix-constant-parameters-of-functions branch March 31, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant